@import "./reset";
@import "./tailwind";
@import "./transition";
@import "./px-ui";
@import "./sidebar";
@import "./dark";
@import "./pengxi";

/* 自定义全局 CssVar */
:root {
  /* 左侧菜单展开、收起动画时长 */
  --pure-transition-duration: 0.3s;

  /* 常用border-color 需要时可取用 */
  --pure-border-color: rgb(5 5 5 / 6%);

  /* switch关闭状态下的color 需要时可取用 */
  --pure-switch-off-color: #a6a6a6;

  /* 全局设置table cell dev 默认高度 */
  --px-table__cell-div-height: 24px;

  /* 全局设置table cell padding; */
  --px-table__cell-padding: 5px 0;

  /* 全局设置table cell height */
  --px-table__cell-height: 36px;
}

/* 灰色模式 */
.html-grey {
  filter: grayscale(100%);
}

/* 色弱模式 */
.html-weakness {
  filter: invert(80%);
}

/* 公共样式 */
body {
  height: 100%;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  box-sizing: border-box;
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0 !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &::after {
    display: block;
    height: 0;
    clear: both;
    font-size: 0;
    visibility: hidden;
    content: " ";
  }
}

aside {
  display: block;
  padding: 8px 24px;
  margin-bottom: 20px;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 32px;
  color: #2c3e50;
  background: #eef1f6;
  border-radius: 2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32 160 255);
    }
  }
}

/* main-container全局样式 */
.app-container {
  padding: 20px;
  margin: 48px 20px 0;
  background-color: #fff;
}

.components-container {
  position: relative;
  margin: 30px 50px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  position: relative;
  width: 100%;
  height: 50px;
  padding-right: 20px;
  line-height: 50px;
  text-align: right;
  background: linear-gradient(90deg, rgb(32 182 249 / 100%) 0%, rgb(32 182 249 / 100%) 0%, rgb(33 120 241 / 100%) 100%, rgb(33 120 241 / 100%) 100%);
  transition: 600ms ease position;

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32 160 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    margin-bottom: 10px;
    vertical-align: middle;
  }
}

.use-message-box-confirm-delete-btn {
  color: #fff;
  background-color: #f00;
  border-color: #f00;

  &:hover {
    background-color: rgb(255 0 0 / 70%);
    border-color: rgb(255 0 0 / 70%);
  }
}
.fullScreen {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
// @font-face {
//   font-family: "TCloudNumber";
//   src: url("/ifp-web-static/font/TCloudNumberv1.010/TCloudNumber-Regular.ttf");
// }
// @font-face {
//   font-family: "TCloudNumber-Regular";
//   src: url("/ifp-web-static/font/TCloudNumberv1.010/TCloudNumber-Regular.ttf");
// }
// @font-face {
//   font-family: "TCloudNumber-Bold";
//   src: url("/ifp-web-static/font/TCloudNumberv1.010/TCloudNumber-Bold.ttf");
// }
@font-face {
  font-family: "DOUYUFont";
  src: url("/ifp-web-static/font/DOUYUFont.ttf");
}
@font-face {
  font-family: "AlibabaPuHuiTi-Regular";
  src: url("/ifp-web-static/font/AlibabaPuHuiTi-2-55-Regular.ttf");
}
@font-face {
  font-family: "AlibabaPuHuiTiM";
  src: url("/ifp-web-static/font/AlibabaPuHuiTi-2-75-SemiBold.ttf");
}
